package com.erp.programmer.controller;


import com.erp.programmer.dto.ResponseDto;
import com.erp.programmer.dto.SaleOrderDetailDto;
import com.erp.programmer.dto.SaleOrderDto;
import com.erp.programmer.service.ISaleOrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Takagi3
 * @since 2021-05-24
 */
@RestController
@RequestMapping("/sale_order_detail")
@CrossOrigin
public class SaleOrderDetailController {

    @Autowired
    ISaleOrderDetailService iSaleOrderDetailService;

    @PostMapping("/search")
    public ResponseDto<List<SaleOrderDetailDto>> search(@RequestBody SaleOrderDto saleOrderDto){

        return iSaleOrderDetailService.search(saleOrderDto);
    }
}

